/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"5A7D7BBD-BAA7-402B-B9B7-5BD01EE737BA",variableType:4}
 */
var fHotel = null;


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"77468100-E8E0-4157-AB09-7B106ADC140B"}
 */
function iraDetalle(event) {
	forms.hotelhab_dtl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"BC2D3C7C-4E65-421D-8524-F271ACAD0550"}
 * @AllowToRunInFind
 */
function Buscar(event) {
	if (controller.find() == false)
	{
		globals.DIALOGS.showErrorDialog('Error','Error en la busqueda','OK')
		return
	}
	
	hotelhab_hoteles_id = fHotel
	
	var cuantos = controller.search()
	if (cuantos == 0)
	{
		controller.loadAllRecords()
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron resultados','OK')
	}
}
